package jdec.jdt.ls.decompiler.common.source.attach;

import org.eclipse.jdt.core.IClassFile;
import org.eclipse.jdt.core.IPackageFragmentRoot;

public interface IAttachSourceHandler {

    /**
     * 仅支持CPE_VARIABLE、CPE_LIBRARY
     * 
     * @param root
     * @return
     */
    boolean syncAttachSource(IPackageFragmentRoot root);

    /**
     * 支持全部类型
     * 
     * @param classFile
     * @return
     */
    boolean syncAttachSource(IClassFile classFile);

}
